package com.teamall.web.fpgz.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class CodeVillageInfoArg {
    private String pk_name = "village_id";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<CodeVillageInfoCriteria> oredCriteria;

    public CodeVillageInfoArg() {
        oredCriteria = new ArrayList<CodeVillageInfoCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<CodeVillageInfoCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(CodeVillageInfoCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public CodeVillageInfoCriteria or() {
    	CodeVillageInfoCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public CodeVillageInfoCriteria createCriteria() {
    	CodeVillageInfoCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected CodeVillageInfoCriteria createCriteriaInternal() {
    	CodeVillageInfoCriteria criteria = new CodeVillageInfoCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<CodeVillageInfoCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<CodeVillageInfoCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<CodeVillageInfoCriterion> getAllCriteria() {
            return criteria;
        }

        public List<CodeVillageInfoCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new CodeVillageInfoCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new CodeVillageInfoCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new CodeVillageInfoCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new CodeVillageInfoCriterion(condition, value1, value2));
        }

        public CodeVillageInfoCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (CodeVillageInfoCriteria) this;
        }
        public CodeVillageInfoCriteria andTownIdIsNull() {
            addCriterion("town_id is null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownIdIsNotNull() {
            addCriterion("town_id is not null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownIdEqualTo(Integer value) {
            addCriterion("town_id =", value, "town_id");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownIdNotEqualTo(Integer value) {
            addCriterion("town_id <>", value, "town_id");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownIdGreaterThan(Integer value) {
            addCriterion("town_id >", value, "town_id");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("town_id >=", value, "town_id");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownIdLessThan(Integer value) {
            addCriterion("town_id <", value, "town_id");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownIdLessThanOrEqualTo(Integer value) {
            addCriterion("town_id <=", value, "town_id");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownIdLike(Integer value) {
            addCriterion("town_id like ", value, "town_id", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownIdNotLike(Integer value) {
            addCriterion("town_id  not like ", value, "town_id", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownIdLeftLike(Integer value) {
            addCriterion("town_id like ", value, "town_id", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownIdNotLeftLike(Integer value) {
            addCriterion("town_id  not like ", value, "town_id", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownIdRightLike(Integer value) {
            addCriterion("town_id like ", value, "town_id", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownIdNotRightLike(Integer value) {
            addCriterion("town_id  not like ", value, "town_id", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownIdIn(List<Integer> values) {
            addCriterion("town_id  in ", values, "town_id");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownIdNotIn(List<Integer> values) {
            addCriterion("town_id not in ", values, "town_id");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownIdBetween(Integer value1, Integer value2) {
            addCriterion("town_id between ", value1, value2, "town_id");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownIdNotBetween(Integer value1, Integer value2) {
            addCriterion("town_id not between ", value1, value2, "town_id");
            return (CodeVillageInfoCriteria) this;
        }
        public CodeVillageInfoCriteria andTownNameIsNull() {
            addCriterion("town_name is null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownNameIsNotNull() {
            addCriterion("town_name is not null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownNameEqualTo(String value) {
            addCriterion("town_name =", value, "town_name");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownNameNotEqualTo(String value) {
            addCriterion("town_name <>", value, "town_name");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownNameGreaterThan(String value) {
            addCriterion("town_name >", value, "town_name");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownNameGreaterThanOrEqualTo(String value) {
            addCriterion("town_name >=", value, "town_name");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownNameLessThan(String value) {
            addCriterion("town_name <", value, "town_name");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownNameLessThanOrEqualTo(String value) {
            addCriterion("town_name <=", value, "town_name");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownNameLike(String value) {
            addCriterion("town_name like ", value, "town_name", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownNameNotLike(String value) {
            addCriterion("town_name  not like ", value, "town_name", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownNameLeftLike(String value) {
            addCriterion("town_name like ", value, "town_name", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownNameNotLeftLike(String value) {
            addCriterion("town_name  not like ", value, "town_name", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownNameRightLike(String value) {
            addCriterion("town_name like ", value, "town_name", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownNameNotRightLike(String value) {
            addCriterion("town_name  not like ", value, "town_name", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownNameIn(List<String> values) {
            addCriterion("town_name  in ", values, "town_name");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownNameNotIn(List<String> values) {
            addCriterion("town_name not in ", values, "town_name");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownNameBetween(String value1, String value2) {
            addCriterion("town_name between ", value1, value2, "town_name");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownNameNotBetween(String value1, String value2) {
            addCriterion("town_name not between ", value1, value2, "town_name");
            return (CodeVillageInfoCriteria) this;
        }
        public CodeVillageInfoCriteria andVillageIdIsNull() {
            addCriterion("village_id is null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageIdIsNotNull() {
            addCriterion("village_id is not null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageIdEqualTo(Integer value) {
            addCriterion("village_id =", value, "village_id");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageIdNotEqualTo(Integer value) {
            addCriterion("village_id <>", value, "village_id");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageIdGreaterThan(Integer value) {
            addCriterion("village_id >", value, "village_id");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("village_id >=", value, "village_id");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageIdLessThan(Integer value) {
            addCriterion("village_id <", value, "village_id");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageIdLessThanOrEqualTo(Integer value) {
            addCriterion("village_id <=", value, "village_id");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageIdLike(Integer value) {
            addCriterion("village_id like ", value, "village_id", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageIdNotLike(Integer value) {
            addCriterion("village_id  not like ", value, "village_id", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageIdLeftLike(Integer value) {
            addCriterion("village_id like ", value, "village_id", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageIdNotLeftLike(Integer value) {
            addCriterion("village_id  not like ", value, "village_id", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageIdRightLike(Integer value) {
            addCriterion("village_id like ", value, "village_id", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageIdNotRightLike(Integer value) {
            addCriterion("village_id  not like ", value, "village_id", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageIdIn(List<Integer> values) {
            addCriterion("village_id  in ", values, "village_id");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageIdNotIn(List<Integer> values) {
            addCriterion("village_id not in ", values, "village_id");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageIdBetween(Integer value1, Integer value2) {
            addCriterion("village_id between ", value1, value2, "village_id");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageIdNotBetween(Integer value1, Integer value2) {
            addCriterion("village_id not between ", value1, value2, "village_id");
            return (CodeVillageInfoCriteria) this;
        }
        public CodeVillageInfoCriteria andVillageCodeIsNull() {
            addCriterion("village_code is null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageCodeIsNotNull() {
            addCriterion("village_code is not null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageCodeEqualTo(String value) {
            addCriterion("village_code =", value, "village_code");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageCodeNotEqualTo(String value) {
            addCriterion("village_code <>", value, "village_code");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageCodeGreaterThan(String value) {
            addCriterion("village_code >", value, "village_code");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageCodeGreaterThanOrEqualTo(String value) {
            addCriterion("village_code >=", value, "village_code");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageCodeLessThan(String value) {
            addCriterion("village_code <", value, "village_code");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageCodeLessThanOrEqualTo(String value) {
            addCriterion("village_code <=", value, "village_code");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageCodeLike(String value) {
            addCriterion("village_code like ", value, "village_code", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageCodeNotLike(String value) {
            addCriterion("village_code  not like ", value, "village_code", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageCodeLeftLike(String value) {
            addCriterion("village_code like ", value, "village_code", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageCodeNotLeftLike(String value) {
            addCriterion("village_code  not like ", value, "village_code", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageCodeRightLike(String value) {
            addCriterion("village_code like ", value, "village_code", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageCodeNotRightLike(String value) {
            addCriterion("village_code  not like ", value, "village_code", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageCodeIn(List<String> values) {
            addCriterion("village_code  in ", values, "village_code");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageCodeNotIn(List<String> values) {
            addCriterion("village_code not in ", values, "village_code");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageCodeBetween(String value1, String value2) {
            addCriterion("village_code between ", value1, value2, "village_code");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageCodeNotBetween(String value1, String value2) {
            addCriterion("village_code not between ", value1, value2, "village_code");
            return (CodeVillageInfoCriteria) this;
        }
        public CodeVillageInfoCriteria andVillageNameIsNull() {
            addCriterion("village_name is null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageNameIsNotNull() {
            addCriterion("village_name is not null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageNameEqualTo(String value) {
            addCriterion("village_name =", value, "village_name");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageNameNotEqualTo(String value) {
            addCriterion("village_name <>", value, "village_name");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageNameGreaterThan(String value) {
            addCriterion("village_name >", value, "village_name");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageNameGreaterThanOrEqualTo(String value) {
            addCriterion("village_name >=", value, "village_name");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageNameLessThan(String value) {
            addCriterion("village_name <", value, "village_name");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageNameLessThanOrEqualTo(String value) {
            addCriterion("village_name <=", value, "village_name");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageNameLike(String value) {
            addCriterion("village_name like ", value, "village_name", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageNameNotLike(String value) {
            addCriterion("village_name  not like ", value, "village_name", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageNameLeftLike(String value) {
            addCriterion("village_name like ", value, "village_name", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageNameNotLeftLike(String value) {
            addCriterion("village_name  not like ", value, "village_name", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageNameRightLike(String value) {
            addCriterion("village_name like ", value, "village_name", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageNameNotRightLike(String value) {
            addCriterion("village_name  not like ", value, "village_name", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageNameIn(List<String> values) {
            addCriterion("village_name  in ", values, "village_name");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageNameNotIn(List<String> values) {
            addCriterion("village_name not in ", values, "village_name");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageNameBetween(String value1, String value2) {
            addCriterion("village_name between ", value1, value2, "village_name");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageNameNotBetween(String value1, String value2) {
            addCriterion("village_name not between ", value1, value2, "village_name");
            return (CodeVillageInfoCriteria) this;
        }
        public CodeVillageInfoCriteria andPovertyAttrIsNull() {
            addCriterion("poverty_attr is null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrIsNotNull() {
            addCriterion("poverty_attr is not null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrEqualTo(Integer value) {
            addCriterion("poverty_attr =", value, "poverty_attr");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrNotEqualTo(Integer value) {
            addCriterion("poverty_attr <>", value, "poverty_attr");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrGreaterThan(Integer value) {
            addCriterion("poverty_attr >", value, "poverty_attr");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrGreaterThanOrEqualTo(Integer value) {
            addCriterion("poverty_attr >=", value, "poverty_attr");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrLessThan(Integer value) {
            addCriterion("poverty_attr <", value, "poverty_attr");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrLessThanOrEqualTo(Integer value) {
            addCriterion("poverty_attr <=", value, "poverty_attr");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrLike(Integer value) {
            addCriterion("poverty_attr like ", value, "poverty_attr", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrNotLike(Integer value) {
            addCriterion("poverty_attr  not like ", value, "poverty_attr", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrLeftLike(Integer value) {
            addCriterion("poverty_attr like ", value, "poverty_attr", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrNotLeftLike(Integer value) {
            addCriterion("poverty_attr  not like ", value, "poverty_attr", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrRightLike(Integer value) {
            addCriterion("poverty_attr like ", value, "poverty_attr", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrNotRightLike(Integer value) {
            addCriterion("poverty_attr  not like ", value, "poverty_attr", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrIn(List<Integer> values) {
            addCriterion("poverty_attr  in ", values, "poverty_attr");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrNotIn(List<Integer> values) {
            addCriterion("poverty_attr not in ", values, "poverty_attr");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrBetween(Integer value1, Integer value2) {
            addCriterion("poverty_attr between ", value1, value2, "poverty_attr");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrNotBetween(Integer value1, Integer value2) {
            addCriterion("poverty_attr not between ", value1, value2, "poverty_attr");
            return (CodeVillageInfoCriteria) this;
        }
        public CodeVillageInfoCriteria andPovertyAttrNameIsNull() {
            addCriterion("poverty_attr_name is null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrNameIsNotNull() {
            addCriterion("poverty_attr_name is not null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrNameEqualTo(String value) {
            addCriterion("poverty_attr_name =", value, "poverty_attr_name");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrNameNotEqualTo(String value) {
            addCriterion("poverty_attr_name <>", value, "poverty_attr_name");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrNameGreaterThan(String value) {
            addCriterion("poverty_attr_name >", value, "poverty_attr_name");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrNameGreaterThanOrEqualTo(String value) {
            addCriterion("poverty_attr_name >=", value, "poverty_attr_name");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrNameLessThan(String value) {
            addCriterion("poverty_attr_name <", value, "poverty_attr_name");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrNameLessThanOrEqualTo(String value) {
            addCriterion("poverty_attr_name <=", value, "poverty_attr_name");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrNameLike(String value) {
            addCriterion("poverty_attr_name like ", value, "poverty_attr_name", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrNameNotLike(String value) {
            addCriterion("poverty_attr_name  not like ", value, "poverty_attr_name", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrNameLeftLike(String value) {
            addCriterion("poverty_attr_name like ", value, "poverty_attr_name", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrNameNotLeftLike(String value) {
            addCriterion("poverty_attr_name  not like ", value, "poverty_attr_name", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrNameRightLike(String value) {
            addCriterion("poverty_attr_name like ", value, "poverty_attr_name", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrNameNotRightLike(String value) {
            addCriterion("poverty_attr_name  not like ", value, "poverty_attr_name", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrNameIn(List<String> values) {
            addCriterion("poverty_attr_name  in ", values, "poverty_attr_name");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrNameNotIn(List<String> values) {
            addCriterion("poverty_attr_name not in ", values, "poverty_attr_name");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrNameBetween(String value1, String value2) {
            addCriterion("poverty_attr_name between ", value1, value2, "poverty_attr_name");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andPovertyAttrNameNotBetween(String value1, String value2) {
            addCriterion("poverty_attr_name not between ", value1, value2, "poverty_attr_name");
            return (CodeVillageInfoCriteria) this;
        }
        public CodeVillageInfoCriteria andDepartmentLeaderIsNull() {
            addCriterion("department_leader is null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andDepartmentLeaderIsNotNull() {
            addCriterion("department_leader is not null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andDepartmentLeaderEqualTo(String value) {
            addCriterion("department_leader =", value, "department_leader");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andDepartmentLeaderNotEqualTo(String value) {
            addCriterion("department_leader <>", value, "department_leader");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andDepartmentLeaderGreaterThan(String value) {
            addCriterion("department_leader >", value, "department_leader");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andDepartmentLeaderGreaterThanOrEqualTo(String value) {
            addCriterion("department_leader >=", value, "department_leader");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andDepartmentLeaderLessThan(String value) {
            addCriterion("department_leader <", value, "department_leader");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andDepartmentLeaderLessThanOrEqualTo(String value) {
            addCriterion("department_leader <=", value, "department_leader");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andDepartmentLeaderLike(String value) {
            addCriterion("department_leader like ", value, "department_leader", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andDepartmentLeaderNotLike(String value) {
            addCriterion("department_leader  not like ", value, "department_leader", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andDepartmentLeaderLeftLike(String value) {
            addCriterion("department_leader like ", value, "department_leader", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andDepartmentLeaderNotLeftLike(String value) {
            addCriterion("department_leader  not like ", value, "department_leader", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andDepartmentLeaderRightLike(String value) {
            addCriterion("department_leader like ", value, "department_leader", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andDepartmentLeaderNotRightLike(String value) {
            addCriterion("department_leader  not like ", value, "department_leader", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andDepartmentLeaderIn(List<String> values) {
            addCriterion("department_leader  in ", values, "department_leader");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andDepartmentLeaderNotIn(List<String> values) {
            addCriterion("department_leader not in ", values, "department_leader");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andDepartmentLeaderBetween(String value1, String value2) {
            addCriterion("department_leader between ", value1, value2, "department_leader");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andDepartmentLeaderNotBetween(String value1, String value2) {
            addCriterion("department_leader not between ", value1, value2, "department_leader");
            return (CodeVillageInfoCriteria) this;
        }
        public CodeVillageInfoCriteria andTownLeaderIsNull() {
            addCriterion("town_leader is null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownLeaderIsNotNull() {
            addCriterion("town_leader is not null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownLeaderEqualTo(String value) {
            addCriterion("town_leader =", value, "town_leader");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownLeaderNotEqualTo(String value) {
            addCriterion("town_leader <>", value, "town_leader");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownLeaderGreaterThan(String value) {
            addCriterion("town_leader >", value, "town_leader");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownLeaderGreaterThanOrEqualTo(String value) {
            addCriterion("town_leader >=", value, "town_leader");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownLeaderLessThan(String value) {
            addCriterion("town_leader <", value, "town_leader");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownLeaderLessThanOrEqualTo(String value) {
            addCriterion("town_leader <=", value, "town_leader");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownLeaderLike(String value) {
            addCriterion("town_leader like ", value, "town_leader", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownLeaderNotLike(String value) {
            addCriterion("town_leader  not like ", value, "town_leader", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownLeaderLeftLike(String value) {
            addCriterion("town_leader like ", value, "town_leader", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownLeaderNotLeftLike(String value) {
            addCriterion("town_leader  not like ", value, "town_leader", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownLeaderRightLike(String value) {
            addCriterion("town_leader like ", value, "town_leader", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownLeaderNotRightLike(String value) {
            addCriterion("town_leader  not like ", value, "town_leader", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownLeaderIn(List<String> values) {
            addCriterion("town_leader  in ", values, "town_leader");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownLeaderNotIn(List<String> values) {
            addCriterion("town_leader not in ", values, "town_leader");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownLeaderBetween(String value1, String value2) {
            addCriterion("town_leader between ", value1, value2, "town_leader");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTownLeaderNotBetween(String value1, String value2) {
            addCriterion("town_leader not between ", value1, value2, "town_leader");
            return (CodeVillageInfoCriteria) this;
        }
        public CodeVillageInfoCriteria andCityOrgIsNull() {
            addCriterion("city_org is null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andCityOrgIsNotNull() {
            addCriterion("city_org is not null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andCityOrgEqualTo(String value) {
            addCriterion("city_org =", value, "city_org");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andCityOrgNotEqualTo(String value) {
            addCriterion("city_org <>", value, "city_org");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andCityOrgGreaterThan(String value) {
            addCriterion("city_org >", value, "city_org");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andCityOrgGreaterThanOrEqualTo(String value) {
            addCriterion("city_org >=", value, "city_org");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andCityOrgLessThan(String value) {
            addCriterion("city_org <", value, "city_org");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andCityOrgLessThanOrEqualTo(String value) {
            addCriterion("city_org <=", value, "city_org");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andCityOrgLike(String value) {
            addCriterion("city_org like ", value, "city_org", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andCityOrgNotLike(String value) {
            addCriterion("city_org  not like ", value, "city_org", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andCityOrgLeftLike(String value) {
            addCriterion("city_org like ", value, "city_org", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andCityOrgNotLeftLike(String value) {
            addCriterion("city_org  not like ", value, "city_org", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andCityOrgRightLike(String value) {
            addCriterion("city_org like ", value, "city_org", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andCityOrgNotRightLike(String value) {
            addCriterion("city_org  not like ", value, "city_org", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andCityOrgIn(List<String> values) {
            addCriterion("city_org  in ", values, "city_org");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andCityOrgNotIn(List<String> values) {
            addCriterion("city_org not in ", values, "city_org");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andCityOrgBetween(String value1, String value2) {
            addCriterion("city_org between ", value1, value2, "city_org");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andCityOrgNotBetween(String value1, String value2) {
            addCriterion("city_org not between ", value1, value2, "city_org");
            return (CodeVillageInfoCriteria) this;
        }
        public CodeVillageInfoCriteria andVillageLeaderIsNull() {
            addCriterion("village_leader is null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageLeaderIsNotNull() {
            addCriterion("village_leader is not null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageLeaderEqualTo(String value) {
            addCriterion("village_leader =", value, "village_leader");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageLeaderNotEqualTo(String value) {
            addCriterion("village_leader <>", value, "village_leader");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageLeaderGreaterThan(String value) {
            addCriterion("village_leader >", value, "village_leader");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageLeaderGreaterThanOrEqualTo(String value) {
            addCriterion("village_leader >=", value, "village_leader");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageLeaderLessThan(String value) {
            addCriterion("village_leader <", value, "village_leader");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageLeaderLessThanOrEqualTo(String value) {
            addCriterion("village_leader <=", value, "village_leader");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageLeaderLike(String value) {
            addCriterion("village_leader like ", value, "village_leader", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageLeaderNotLike(String value) {
            addCriterion("village_leader  not like ", value, "village_leader", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageLeaderLeftLike(String value) {
            addCriterion("village_leader like ", value, "village_leader", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageLeaderNotLeftLike(String value) {
            addCriterion("village_leader  not like ", value, "village_leader", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageLeaderRightLike(String value) {
            addCriterion("village_leader like ", value, "village_leader", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageLeaderNotRightLike(String value) {
            addCriterion("village_leader  not like ", value, "village_leader", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageLeaderIn(List<String> values) {
            addCriterion("village_leader  in ", values, "village_leader");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageLeaderNotIn(List<String> values) {
            addCriterion("village_leader not in ", values, "village_leader");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageLeaderBetween(String value1, String value2) {
            addCriterion("village_leader between ", value1, value2, "village_leader");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andVillageLeaderNotBetween(String value1, String value2) {
            addCriterion("village_leader not between ", value1, value2, "village_leader");
            return (CodeVillageInfoCriteria) this;
        }
        public CodeVillageInfoCriteria andGachaSecretaryIsNull() {
            addCriterion("GACHA_SECRETARY is null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaSecretaryIsNotNull() {
            addCriterion("GACHA_SECRETARY is not null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaSecretaryEqualTo(String value) {
            addCriterion("GACHA_SECRETARY =", value, "GACHA_SECRETARY");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaSecretaryNotEqualTo(String value) {
            addCriterion("GACHA_SECRETARY <>", value, "GACHA_SECRETARY");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaSecretaryGreaterThan(String value) {
            addCriterion("GACHA_SECRETARY >", value, "GACHA_SECRETARY");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaSecretaryGreaterThanOrEqualTo(String value) {
            addCriterion("GACHA_SECRETARY >=", value, "GACHA_SECRETARY");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaSecretaryLessThan(String value) {
            addCriterion("GACHA_SECRETARY <", value, "GACHA_SECRETARY");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaSecretaryLessThanOrEqualTo(String value) {
            addCriterion("GACHA_SECRETARY <=", value, "GACHA_SECRETARY");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaSecretaryLike(String value) {
            addCriterion("GACHA_SECRETARY like ", value, "GACHA_SECRETARY", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaSecretaryNotLike(String value) {
            addCriterion("GACHA_SECRETARY  not like ", value, "GACHA_SECRETARY", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaSecretaryLeftLike(String value) {
            addCriterion("GACHA_SECRETARY like ", value, "GACHA_SECRETARY", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaSecretaryNotLeftLike(String value) {
            addCriterion("GACHA_SECRETARY  not like ", value, "GACHA_SECRETARY", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaSecretaryRightLike(String value) {
            addCriterion("GACHA_SECRETARY like ", value, "GACHA_SECRETARY", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaSecretaryNotRightLike(String value) {
            addCriterion("GACHA_SECRETARY  not like ", value, "GACHA_SECRETARY", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaSecretaryIn(List<String> values) {
            addCriterion("GACHA_SECRETARY  in ", values, "GACHA_SECRETARY");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaSecretaryNotIn(List<String> values) {
            addCriterion("GACHA_SECRETARY not in ", values, "GACHA_SECRETARY");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaSecretaryBetween(String value1, String value2) {
            addCriterion("GACHA_SECRETARY between ", value1, value2, "GACHA_SECRETARY");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaSecretaryNotBetween(String value1, String value2) {
            addCriterion("GACHA_SECRETARY not between ", value1, value2, "GACHA_SECRETARY");
            return (CodeVillageInfoCriteria) this;
        }
        public CodeVillageInfoCriteria andGachaLeaderIsNull() {
            addCriterion("GACHA_LEADER is null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaLeaderIsNotNull() {
            addCriterion("GACHA_LEADER is not null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaLeaderEqualTo(String value) {
            addCriterion("GACHA_LEADER =", value, "GACHA_LEADER");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaLeaderNotEqualTo(String value) {
            addCriterion("GACHA_LEADER <>", value, "GACHA_LEADER");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaLeaderGreaterThan(String value) {
            addCriterion("GACHA_LEADER >", value, "GACHA_LEADER");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaLeaderGreaterThanOrEqualTo(String value) {
            addCriterion("GACHA_LEADER >=", value, "GACHA_LEADER");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaLeaderLessThan(String value) {
            addCriterion("GACHA_LEADER <", value, "GACHA_LEADER");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaLeaderLessThanOrEqualTo(String value) {
            addCriterion("GACHA_LEADER <=", value, "GACHA_LEADER");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaLeaderLike(String value) {
            addCriterion("GACHA_LEADER like ", value, "GACHA_LEADER", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaLeaderNotLike(String value) {
            addCriterion("GACHA_LEADER  not like ", value, "GACHA_LEADER", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaLeaderLeftLike(String value) {
            addCriterion("GACHA_LEADER like ", value, "GACHA_LEADER", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaLeaderNotLeftLike(String value) {
            addCriterion("GACHA_LEADER  not like ", value, "GACHA_LEADER", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaLeaderRightLike(String value) {
            addCriterion("GACHA_LEADER like ", value, "GACHA_LEADER", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaLeaderNotRightLike(String value) {
            addCriterion("GACHA_LEADER  not like ", value, "GACHA_LEADER", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaLeaderIn(List<String> values) {
            addCriterion("GACHA_LEADER  in ", values, "GACHA_LEADER");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaLeaderNotIn(List<String> values) {
            addCriterion("GACHA_LEADER not in ", values, "GACHA_LEADER");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaLeaderBetween(String value1, String value2) {
            addCriterion("GACHA_LEADER between ", value1, value2, "GACHA_LEADER");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaLeaderNotBetween(String value1, String value2) {
            addCriterion("GACHA_LEADER not between ", value1, value2, "GACHA_LEADER");
            return (CodeVillageInfoCriteria) this;
        }
        public CodeVillageInfoCriteria andGachaViceLeaderIsNull() {
            addCriterion("GACHA_VICE_LEADER is null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaViceLeaderIsNotNull() {
            addCriterion("GACHA_VICE_LEADER is not null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaViceLeaderEqualTo(String value) {
            addCriterion("GACHA_VICE_LEADER =", value, "GACHA_VICE_LEADER");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaViceLeaderNotEqualTo(String value) {
            addCriterion("GACHA_VICE_LEADER <>", value, "GACHA_VICE_LEADER");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaViceLeaderGreaterThan(String value) {
            addCriterion("GACHA_VICE_LEADER >", value, "GACHA_VICE_LEADER");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaViceLeaderGreaterThanOrEqualTo(String value) {
            addCriterion("GACHA_VICE_LEADER >=", value, "GACHA_VICE_LEADER");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaViceLeaderLessThan(String value) {
            addCriterion("GACHA_VICE_LEADER <", value, "GACHA_VICE_LEADER");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaViceLeaderLessThanOrEqualTo(String value) {
            addCriterion("GACHA_VICE_LEADER <=", value, "GACHA_VICE_LEADER");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaViceLeaderLike(String value) {
            addCriterion("GACHA_VICE_LEADER like ", value, "GACHA_VICE_LEADER", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaViceLeaderNotLike(String value) {
            addCriterion("GACHA_VICE_LEADER  not like ", value, "GACHA_VICE_LEADER", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaViceLeaderLeftLike(String value) {
            addCriterion("GACHA_VICE_LEADER like ", value, "GACHA_VICE_LEADER", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaViceLeaderNotLeftLike(String value) {
            addCriterion("GACHA_VICE_LEADER  not like ", value, "GACHA_VICE_LEADER", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaViceLeaderRightLike(String value) {
            addCriterion("GACHA_VICE_LEADER like ", value, "GACHA_VICE_LEADER", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaViceLeaderNotRightLike(String value) {
            addCriterion("GACHA_VICE_LEADER  not like ", value, "GACHA_VICE_LEADER", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaViceLeaderIn(List<String> values) {
            addCriterion("GACHA_VICE_LEADER  in ", values, "GACHA_VICE_LEADER");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaViceLeaderNotIn(List<String> values) {
            addCriterion("GACHA_VICE_LEADER not in ", values, "GACHA_VICE_LEADER");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaViceLeaderBetween(String value1, String value2) {
            addCriterion("GACHA_VICE_LEADER between ", value1, value2, "GACHA_VICE_LEADER");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andGachaViceLeaderNotBetween(String value1, String value2) {
            addCriterion("GACHA_VICE_LEADER not between ", value1, value2, "GACHA_VICE_LEADER");
            return (CodeVillageInfoCriteria) this;
        }
        public CodeVillageInfoCriteria andTeamCaptainIsNull() {
            addCriterion("team_captain is null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTeamCaptainIsNotNull() {
            addCriterion("team_captain is not null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTeamCaptainEqualTo(String value) {
            addCriterion("team_captain =", value, "team_captain");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTeamCaptainNotEqualTo(String value) {
            addCriterion("team_captain <>", value, "team_captain");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTeamCaptainGreaterThan(String value) {
            addCriterion("team_captain >", value, "team_captain");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTeamCaptainGreaterThanOrEqualTo(String value) {
            addCriterion("team_captain >=", value, "team_captain");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTeamCaptainLessThan(String value) {
            addCriterion("team_captain <", value, "team_captain");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTeamCaptainLessThanOrEqualTo(String value) {
            addCriterion("team_captain <=", value, "team_captain");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTeamCaptainLike(String value) {
            addCriterion("team_captain like ", value, "team_captain", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTeamCaptainNotLike(String value) {
            addCriterion("team_captain  not like ", value, "team_captain", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTeamCaptainLeftLike(String value) {
            addCriterion("team_captain like ", value, "team_captain", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTeamCaptainNotLeftLike(String value) {
            addCriterion("team_captain  not like ", value, "team_captain", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTeamCaptainRightLike(String value) {
            addCriterion("team_captain like ", value, "team_captain", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTeamCaptainNotRightLike(String value) {
            addCriterion("team_captain  not like ", value, "team_captain", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTeamCaptainIn(List<String> values) {
            addCriterion("team_captain  in ", values, "team_captain");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTeamCaptainNotIn(List<String> values) {
            addCriterion("team_captain not in ", values, "team_captain");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTeamCaptainBetween(String value1, String value2) {
            addCriterion("team_captain between ", value1, value2, "team_captain");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTeamCaptainNotBetween(String value1, String value2) {
            addCriterion("team_captain not between ", value1, value2, "team_captain");
            return (CodeVillageInfoCriteria) this;
        }
        public CodeVillageInfoCriteria andTelIsNull() {
            addCriterion("tel is null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTelIsNotNull() {
            addCriterion("tel is not null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTelEqualTo(String value) {
            addCriterion("tel =", value, "tel");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTelNotEqualTo(String value) {
            addCriterion("tel <>", value, "tel");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTelGreaterThan(String value) {
            addCriterion("tel >", value, "tel");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTelGreaterThanOrEqualTo(String value) {
            addCriterion("tel >=", value, "tel");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTelLessThan(String value) {
            addCriterion("tel <", value, "tel");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTelLessThanOrEqualTo(String value) {
            addCriterion("tel <=", value, "tel");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTelLike(String value) {
            addCriterion("tel like ", value, "tel", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTelNotLike(String value) {
            addCriterion("tel  not like ", value, "tel", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTelLeftLike(String value) {
            addCriterion("tel like ", value, "tel", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTelNotLeftLike(String value) {
            addCriterion("tel  not like ", value, "tel", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTelRightLike(String value) {
            addCriterion("tel like ", value, "tel", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTelNotRightLike(String value) {
            addCriterion("tel  not like ", value, "tel", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTelIn(List<String> values) {
            addCriterion("tel  in ", values, "tel");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTelNotIn(List<String> values) {
            addCriterion("tel not in ", values, "tel");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTelBetween(String value1, String value2) {
            addCriterion("tel between ", value1, value2, "tel");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andTelNotBetween(String value1, String value2) {
            addCriterion("tel not between ", value1, value2, "tel");
            return (CodeVillageInfoCriteria) this;
        }
        public CodeVillageInfoCriteria andJobTitleIsNull() {
            addCriterion("job_title is null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andJobTitleIsNotNull() {
            addCriterion("job_title is not null");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andJobTitleEqualTo(String value) {
            addCriterion("job_title =", value, "job_title");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andJobTitleNotEqualTo(String value) {
            addCriterion("job_title <>", value, "job_title");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andJobTitleGreaterThan(String value) {
            addCriterion("job_title >", value, "job_title");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andJobTitleGreaterThanOrEqualTo(String value) {
            addCriterion("job_title >=", value, "job_title");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andJobTitleLessThan(String value) {
            addCriterion("job_title <", value, "job_title");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andJobTitleLessThanOrEqualTo(String value) {
            addCriterion("job_title <=", value, "job_title");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andJobTitleLike(String value) {
            addCriterion("job_title like ", value, "job_title", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andJobTitleNotLike(String value) {
            addCriterion("job_title  not like ", value, "job_title", 1);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andJobTitleLeftLike(String value) {
            addCriterion("job_title like ", value, "job_title", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andJobTitleNotLeftLike(String value) {
            addCriterion("job_title  not like ", value, "job_title", 0);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andJobTitleRightLike(String value) {
            addCriterion("job_title like ", value, "job_title", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andJobTitleNotRightLike(String value) {
            addCriterion("job_title  not like ", value, "job_title", 2);
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andJobTitleIn(List<String> values) {
            addCriterion("job_title  in ", values, "job_title");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andJobTitleNotIn(List<String> values) {
            addCriterion("job_title not in ", values, "job_title");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andJobTitleBetween(String value1, String value2) {
            addCriterion("job_title between ", value1, value2, "job_title");
            return (CodeVillageInfoCriteria) this;
        }

        public CodeVillageInfoCriteria andJobTitleNotBetween(String value1, String value2) {
            addCriterion("job_title not between ", value1, value2, "job_title");
            return (CodeVillageInfoCriteria) this;
        }

    }

    public static class CodeVillageInfoCriteria extends GeneratedCriteria {

        protected CodeVillageInfoCriteria() {
            super();
        }
    }

    public static class CodeVillageInfoCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected CodeVillageInfoCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected CodeVillageInfoCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected CodeVillageInfoCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected CodeVillageInfoCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected CodeVillageInfoCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected CodeVillageInfoCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}